package com.design.boot.controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author kakayubei
 * @description
 * @date 2021/7/31 13:19
 */
@RestControllerAdvice
public class ExceptionRestController {
    @ExceptionHandler(Exception.class)
    public Object handler(Exception e) {
        throw new RuntimeException(e);
    }

}
